<?php

namespace App\Http\Requests\Api;

class RefereeQrcodeRequest extends FormRequest
{
    public function rules()
    {
        switch ($this->method()) {
            case 'GET':
                $arr = [
                    'series_id' => 'required|integer|exists:vehicle_series,id',
                ];
                return $arr;
                break;
        }
    }

    public function attributes()
    {
        return [
            'series_id' => '车系ID',
        ];
    }

    public function messages()
    {
        return [];
    }
}
